CXXFLAGS = -W -Wall

SOURCES = main.cpp application.cpp gtd.cpp interface.cpp storage.cpp

OBJECTS = $(patsubst %.cpp,%.o,${SOURCES})

gtd: ${OBJECTS}
	${CXX} ${LFLAGS} ${OBJECTS} -lreadline -o gtd

clean:
	rm -f ${OBJECTS} gtd

dep:
	${CXX} ${CXXFLAGS} -MM ${SOURCES} > Makefile.dep

include Makefile.dep
